<template>
  <div>
    <shopping :goodList="goodList"></shopping>
  </div>
</template>

<script>
// 导入
import shopping from './components/shopping.vue'

export default {
  components: {
    shopping
  },
  data () {
    return {
      goodList: [
        {
          name: '诸葛亮',
          price: 1000,
          num: 1,
          checked: false
        },
        {
          name: '蔡文姬',
          price: 1500,
          num: 1,
          checked: false
        },
        {
          name: '妲己',
          price: 2000,
          num: 1,
          checked: false
        },
        {
          name: '鲁班',
          price: 2200,
          num: 1,
          checked: false
        }
      ]
    }
  }
}
</script>

<style></style>
